﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.SqlServer;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using RSSReader.DAL.Migrations;

namespace RSSReader.DAL.DbConfigurations
{
  public class CustomDbConfiguration : DbConfiguration
  {
    public CustomDbConfiguration()
    {
      //SetDefaultConnectionFactory(new LocalDbConnectionFactory("v11.0"));
      //SetDatabaseInitializer(new MigrateDatabaseToLatestVersion<CasinoSlotsModel, Configuration>());
      //DatabaseInitializer(new MyInitializer()); 
      //SetHistoryContext("System.Data.SqlClient",
      //            (connection, defaultSchema) => new MyHistoryContext(connection, defaultSchema));
      //SetPluralizationService(new CustomPluralizationService());
      SetMigrationSqlGenerator("System.Data.SqlClient", () => new CustomSqlServerMigrationSqlGenerator());

      //SetPluralizationService(new EnglishPluralizationService(
      //                          new CustomPluralizationEntry[]
      //                            {
      //                              new CustomPluralizationEntry("Rhinocerous", "Rhinocerii")
      //                            }));

    }
  }
}
